﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true" CodeFile="ConsultarOfertasProveedores.aspx.cs" Inherits="Modules_Compras_ConsultarOfertasProveedores" Title="Untitled Page" %>

<%@ Register Src="../../Controls/TecnoPezPopUp.ascx" TagName="TecnoPezPopUp" TagPrefix="uc3" %>
<%@ Register Src="../../Controls/TecnoPezCalendar.ascx" TagName="TecnoPezCalendar"
    TagPrefix="uc4" %>

<%@ Register Src="../../Controls/TecnopezDataGRIDABMView.ascx" TagName="TecnopezDataGRIDABMView"
    TagPrefix="uc2" %>

<%@ Register Src="../../Controls/TecnoPezUpdateProgress.ascx" TagName="TecnoPezUpdateProgress"
    TagPrefix="uc1" %>

<%@ Register Assembly="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    Namespace="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    TagPrefix="cc1" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" Runat="Server">
    <asp:ScriptManager ID="ScriptManagerEnfermedades" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanelEnfermedades" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
<asp:Wizard id="wzrABM" runat="server" OnActiveStepChanged="wzrABM_ActiveStepChanged" DisplaySideBar="False" Font-Size="0.8em" Font-Names="Verdana" BorderWidth="0px" BorderColor="#B5C7DE" ActiveStepIndex="0">
<StepStyle ForeColor="#333333" Font-Size="0.8em" VerticalAlign="Top"></StepStyle>

<SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top"></SideBarStyle>

<NavigationButtonStyle BackColor="White" BorderStyle="Solid" ForeColor="#284E98" BorderWidth="1px" BorderColor="#507CD1" Font-Size="0.8em" Font-Names="Verdana"></NavigationButtonStyle>
<WizardSteps>
<asp:WizardStep runat="server" ID="wzrInsumo" Title="Insumo" StepType="Complete"><TABLE style="WIDTH: 100%" id="Table1" cellSpacing=0><TBODY><TR><TD class="cabeceraTabla" colSpan=2>Que insumo desea consultar?</TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Insumo" Width="200px" ID="lblBuscarCodigo" __designer:wfdid="w11"></asp:Label>
 </TD><TD style="WIDTH: 210px" class="columnaData"><uc3:TecnoPezPopUp runat="server" ID="TPPInsumo" __designer:wfdid="w12"></uc3:TecnoPezPopUp>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Cantidad a comprar" Width="200px" ID="Label14" __designer:wfdid="w13"></asp:Label>
 </TD><TD style="WIDTH: 210px" class="columnaData"><asp:TextBox runat="server" ID="txtCantidad" __designer:wfdid="w14"></asp:TextBox>
 </TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrProveedores" Title="Proveedores" StepType="Complete"><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0><TBODY><TR><TD class="cabeceraTabla" colSpan=1>Que proveedores desea comparar?</TD></TR><TR><TD class="columnaLabels">&nbsp;</TD></TR><TR><TD class="columnaLabels"><asp:Label runat="server" Text="Seleccione los proveedores que desea comparar" Width="100%" ID="Label12" __designer:wfdid="w13"></asp:Label>












 </TD></TR><TR><TD>&nbsp; <asp:GridView runat="server" ID="grdProveedores" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" __designer:wfdid="w14">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>
<Columns>
<asp:TemplateField HeaderText="Seleccione"><ItemTemplate>
        <asp:CheckBox id="grdChkSel" runat="server" Checked='<%# Eval("IsSelected") %>'></asp:CheckBox>
   
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="C&#243;digo"><ItemTemplate>
        <asp:Label ID="grdLblCodigo" runat="server" Text='<%# Eval("Codigo") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Raz&#243;n Social"><ItemTemplate>
        <asp:Label ID="grdLblRazonSocial" runat="server" Text='<%# Eval("RazonSocial") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
</Columns>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>












 </TD></TR><TR><TD colSpan=1></TD></TR><TR><TD class="columnaLabels" colSpan=1>&nbsp;</TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrFactores" Title="Factores" StepType="Complete"><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0><TBODY><TR><TD class="cabeceraTabla" colSpan=1>Que&nbsp;factores desea comparar?</TD></TR><TR><TD class="columnaLabels">&nbsp;</TD></TR><TR><TD class="columnaLabels"><asp:Label runat="server" Text="Seleccione los factores que desea comparar" Width="100%" ID="lblTitleFactores" __designer:wfdid="w3"></asp:Label>




 </TD></TR><TR><TD>&nbsp; <asp:GridView runat="server" ID="grdFactores" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" __designer:wfdid="w4">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>
<Columns>
<asp:TemplateField HeaderText="Seleccione"><ItemTemplate>
        <asp:CheckBox id="grdChkSelFactor" runat="server" Checked='<%# Eval("IsSelected") %>'></asp:CheckBox>
   
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Factor"><ItemTemplate>
        <asp:Label ID="grdLblCodigoFactor" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Tipo"><ItemTemplate>
        <asp:Label ID="grdLblTipoFactor" runat="server" Text='<%# Eval("Tipo") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
</Columns>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>




 </TD></TR><TR><TD class="columnaLabels" colSpan=1><asp:CheckBox runat="server" Text="Utilizar cantidad como un factor de an&#225;lisis" ID="chkFactorCantidad" __designer:wfdid="w5"></asp:CheckBox>




 </TD></TR><TR><TD class="columnaLabels" colSpan=1>&nbsp;</TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrTolerancia" Title="Tolerancia" StepType="Complete"><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0><TBODY><TR><TD class="cabeceraTabla" colSpan=1>Desea asignar límites de tolerancia para los factores?</TD></TR><TR><TD class="columnaLabels">&nbsp;</TD></TR><TR><TD class="columnaLabels"><asp:Label runat="server" Text="Indique las tolerancias asociadas a los facores" Width="100%" ID="lblTitleTolerancia" __designer:wfdid="w9"></asp:Label>








 </TD></TR><TR><TD>&nbsp; <asp:GridView runat="server" ID="grdTolerancia" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" __designer:wfdid="w10" OnRowDataBound="grdTolerancia_RowDataBound">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>
<Columns>
<asp:TemplateField HeaderText="Factor"><ItemTemplate>
        <asp:Label ID="grdLblCodigoFactorTolerancia" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Tipo"><ItemTemplate>
        <asp:Label ID="grdLblTipoFactorTolerancia" runat="server" Text='<%# Eval("Tipo") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Tolerancia"><ItemTemplate>
        <asp:TextBox ID="grdTxtTolerancia" runat="server" Text='<%# Eval("Tolerancia") %>'></asp:TextBox>
    
</ItemTemplate>
</asp:TemplateField>
</Columns>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>








 </TD></TR><TR><TD colSpan=1></TD></TR><TR><TD class="columnaLabels" colSpan=1>&nbsp;</TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrPuntajes" Title="Puntajes" StepType="Complete"><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0><TBODY><TR><TD class="cabeceraTabla" colSpan=1>Que puntajes desea asignar a&nbsp;los factores?</TD></TR><TR><TD class="columnaLabels">&nbsp;</TD></TR><TR><TD class="columnaLabels"><asp:Label runat="server" Text="Ingrese los puntajes para cada factor. Debe tener en cuenta que la suma de puntos debe ser igual a 100" Width="100%" ID="lblTitlePuntajes" __designer:wfdid="w3"></asp:Label>




 </TD></TR><TR><TD>&nbsp; <asp:GridView runat="server" ID="grdPuntajes" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" __designer:wfdid="w4" OnRowDataBound="grdPuntajes_RowDataBound">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>
<Columns>
<asp:TemplateField HeaderText="Factor"><ItemTemplate>
        <asp:Label ID="grdLblCodigoFactorPuntaje" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Tipo"><ItemTemplate>
        <asp:Label ID="grdLblTipoFactorPuntaje" runat="server" Text='<%# Eval("Tipo") %>'></asp:Label>
    
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Puntaje"><ItemTemplate>
        <asp:TextBox ID="grdTxtPuntaje" runat="server" Text='<%# Eval("Puntaje") %>'></asp:TextBox>
    
</ItemTemplate>
</asp:TemplateField>
</Columns>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>




 </TD></TR><TR><TD colSpan=1></TD></TR><TR><TD class="columnaLabels" colSpan=1>&nbsp;</TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrResultado" Title="Resultado" StepType="Complete"><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0><TBODY><TR><TD class="cabeceraTabla" colSpan=1>Ofertas Seleccionadas</TD></TR><TR><TD class="columnaLabels">&nbsp;</TD></TR><TR><TD>&nbsp; <asp:GridView runat="server" ID="grdResultado" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" __designer:wfdid="w3" OnRowCommand="grdResultado_RowCommand">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>
<BR /><asp:Label runat="server" Text="Todas las ofertas han sido descartadas" CssClass="columnaLabels" ID="lblOfertasSeleccionadas" __designer:wfdid="w6"></asp:Label>
 </TD></TR><TR><TD colSpan=1>&nbsp;</TD></TR><TR><TD class="cabeceraTabla" colSpan=1>Ofertas Descartadas</TD></TR><TR><TD class="columnaLabels" colSpan=1>&nbsp;</TD></TR><TR><TD colSpan=1><asp:GridView runat="server" ID="grdDescartadas" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" __designer:wfdid="w4">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>
<BR /><asp:Label runat="server" Text="No se han descartado ofertas" CssClass="columnaLabels" ID="lblOfertasDescartadas" __designer:wfdid="w5"></asp:Label>
 </TD></TR><TR><TD class="columnaLabels" colSpan=1>&nbsp;</TD></TR></TBODY></TABLE></asp:WizardStep>
</WizardSteps>

<SideBarButtonStyle BackColor="#507CD1" ForeColor="White" Font-Names="Verdana"></SideBarButtonStyle>

<HeaderStyle BackColor="#284E98" BorderStyle="Solid" ForeColor="White" BorderWidth="2px" BorderColor="#EFF3FB" HorizontalAlign="Center" Font-Size="0.9em" Font-Bold="True"></HeaderStyle>
</asp:Wizard> <asp:Label id="_lblError" runat="server" CssClass="errorLabel" __designer:wfdid="w1"></asp:Label><BR /><TABLE style="WIDTH: 100%" class="TablaWizardStep" cellSpacing=0 cellPadding=0><TBODY><TR><TD align=left><asp:Button id="btnAnterior" onclick="btnAnterior_Click" runat="server" Width="102px" Height="23px" Text="Anterior" CssClass="Boton" __designer:wfdid="w15"></asp:Button> <asp:Button id="btnSiguiente" onclick="btnSiguiente_Click" runat="server" Width="102px" Height="23px" Text="Siguiente" CssClass="Boton" __designer:wfdid="w16"></asp:Button></TD></TR></TBODY></TABLE>
</ContentTemplate>
    </asp:UpdatePanel>
    <uc1:TecnoPezUpdateProgress ID="TecnoPezUpdateProgress1" runat="server" />
</asp:Content>



